<?php

namespace posts\model;

class PostModel {

	public function validatePost(\posts\model\Post $post) {
		if ($post->Title == "") {
			throw new \Exception("The post must have a title, none given");
		}
		if ($post->username == "") {
			throw new \Exception("The post must have an author, none given");
		}
	}
}